package com.wanmait.happyheating.util;

import org.springframework.util.DigestUtils;

public class MD5Utils {

    public static String md5(String str){
       if(str==null) {
           return null;
       }
        return DigestUtils.md5DigestAsHex(DigestUtils.md5DigestAsHex(str.getBytes()).substring(5,29).getBytes());
    }
}
